package com.hq.door.pojo;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.OneToOne;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import javax.persistence.OneToMany;


/**
 * AbstractTTeacher entity provides the base persistence definition of the TTeacher entity. @author MyEclipse Persistence Tools
 */
@MappedSuperclass

public abstract class AbstractTTeacher  implements java.io.Serializable {


    // Fields    

     private Integer id;
     private String name;
     private String mobile;
     private String code;
     private String account;
	private String password;
     private String weixinId;
     private Timestamp modifiedTime;
     private Integer modifiedBy;
     private TClass TClass;
     private Set<TOutRequest> TOutRequests = new HashSet<TOutRequest>(0);


    // Constructors

    /** default constructor */
    public AbstractTTeacher() {
    }

	/** minimal constructor */
    public AbstractTTeacher(String name, String mobile, String code) {
        this.name = name;
        this.mobile = mobile;
        this.code = code;
    }
    
    /** full constructor */
    public AbstractTTeacher(String name, String mobile, String code, String password, String weixinId, Timestamp modifiedTime, Integer modifiedBy, TClass TClass, Set<TOutRequest> TOutRequests) {
        this.name = name;
        this.mobile = mobile;
        this.code = code;
        this.password = password;
        this.weixinId = weixinId;
        this.modifiedTime = modifiedTime;
        this.modifiedBy = modifiedBy;
        this.TClass = TClass;
        this.TOutRequests = TOutRequests;
    }

   
    // Property accessors
    @Id @GeneratedValue
    
    @Column(name="id", unique=true, nullable=false)

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    
    @Column(name="name", nullable=false, length=100)

    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    @Column(name="mobile", nullable=false, length=30)

    public String getMobile() {
        return this.mobile;
    }
    
    public void setMobile(String mobile) {
        this.mobile = mobile;
    }
    
    @Column(name="code", nullable=false, length=30)

    public String getCode() {
        return this.code;
    }
    
    public void setCode(String code) {
        this.code = code;
    }
    
    @Column(name="account", length=30)

    public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

    
    @Column(name="password", length=100)

    public String getPassword() {
        return this.password;
    }
    
    public void setPassword(String password) {
        this.password = password;
    }
    
    @Column(name="weixin_id", length=100)

    public String getWeixinId() {
        return this.weixinId;
    }
    
    public void setWeixinId(String weixinId) {
        this.weixinId = weixinId;
    }
    
    @Column(name="modified_time", length=19)

    public Timestamp getModifiedTime() {
        return this.modifiedTime;
    }
    
    public void setModifiedTime(Timestamp modifiedTime) {
        this.modifiedTime = modifiedTime;
    }
    
    @Column(name="modified_by")

    public Integer getModifiedBy() {
        return this.modifiedBy;
    }
    
    public void setModifiedBy(Integer modifiedBy) {
        this.modifiedBy = modifiedBy;
    }
@OneToOne(fetch=FetchType.LAZY, mappedBy="TTeacher")

    public TClass getTClass() {
        return this.TClass;
    }
    
    public void setTClass(TClass TClass) {
        this.TClass = TClass;
    }
@OneToMany(fetch=FetchType.LAZY, mappedBy="TTeacher")

    public Set<TOutRequest> getTOutRequests() {
        return this.TOutRequests;
    }
    
    public void setTOutRequests(Set<TOutRequest> TOutRequests) {
        this.TOutRequests = TOutRequests;
    }
   








}